RemoteVideoState enum Null safety

远端视频流状态,及在 RemoteVideoStateChangedReason 中对应的原因

状态改变时,会收到回调 RTCVideoEventHandler.onRemoteVideoStateChanged。

Constants

decoding → const RemoteVideoState

远端视频流正在解码,正常播放

该状态回调时机包括:

  • 成功解码远端视频首帧,对应错误码 localUnmuted
  • 网络由阻塞恢复正常,对应错误码 networkRecorvery
  • 本地用户恢复接收远端视频流,对应错误码 localUnmuted
  • 远端用户恢复发送视频流,对应错误码 remoteUnmuted
const RemoteVideoState(2)
failed → const RemoteVideoState

远端视频流播放失败

如果内部处理远端视频流失败,则会回调该方法,对应错误码 internel

const RemoteVideoState(4)
frozen → const RemoteVideoState

远端视频流卡顿

网络阻塞、丢包率大于 40% 时回调该状态,对应错误码 networkCongestion

const RemoteVideoState(3)
starting → const RemoteVideoState

本地用户已接收远端视频首包

收到远端视频首包时回调该状态,对应错误码 localUnmuted

const RemoteVideoState(1)
stopped → const RemoteVideoState

远端视频流默认初始状态,该状态的回调时机包括:

  • 本地用户停止接收远端视频流,对应错误码 localMuted
  • 远端用户停止发送视频流,对应错误码 remoteMuted
  • 远端用户离开房间,对应错误码 remoteOffline
const RemoteVideoState(0)
values → const List<RemoteVideoState>

A constant List of the values in this enum, in order of their declaration.

const List<RemoteVideoState>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited